package tt.com.serviceprojectmanagement.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.common.enums.Status;
import tt.com.common.model.YxCommonServeProviders;
import tt.com.common.util.CommonResult;
import tt.com.serviceprojectmanagement.service.ServeProvidersService;

/** 服务供应商信息列表
 * @author BEAN
 * @version 2020
 * @date 2022/8/31 23:59
 */

@RestController
@RequestMapping("/serve/provider")
public class ServeProvidersController {

    @Autowired
    private ServeProvidersService serveProvidersService;

    @PostMapping("/del")
    public CommonResult delServeProvider(@RequestBody YxCommonServeProviders serveProviders){
        CommonResult result = serveProvidersService.delServeProvider(serveProviders.getId(), serveProviders.getDeleteUserId());
        return result;
    }
}
